package com.ruoyi.system.mapper;

import com.ruoyi.system.domain.JiajiaWorker;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 社工Mapper接口
 *
 * @author ruoyi
 * @date 2021-10-13
 */
public interface JiajiaWorkerMapper
{
    /**
     * 查询社工
     *
     * @param id 社工主键
     * @return 社工
     */
    public JiajiaWorker selectJiajiaWorkerById(Long id);

    /**
     * 查询社工列表
     *
     * @param jiajiaWorker 社工
     * @return 社工集合
     */
    public List<JiajiaWorker> selectJiajiaWorkerList(JiajiaWorker jiajiaWorker);

    /**
     * 新增社工
     *
     * @param jiajiaWorker 社工
     * @return 结果
     */
    public int insertJiajiaWorker(JiajiaWorker jiajiaWorker);

    /**
     * 修改社工
     *
     * @param jiajiaWorker 社工
     * @return 结果
     */
    public int updateJiajiaWorker(JiajiaWorker jiajiaWorker);

    /**
     * 删除社工
     *
     * @param id 社工主键
     * @return 结果
     */
    public int deleteJiajiaWorkerById(Long id);

    /**
     * 批量删除社工
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteJiajiaWorkerByIds(String[] ids);

    JiajiaWorker selectJiajiaWorkerByIds(@Param("uid")Long uid);

    JiajiaWorker selectRepeat(@Param("name")String name,@Param("loginName")String loginName);

    int insert(JiajiaWorker jiajiaWorker);

    List<JiajiaWorker> inviteJiShiList(String phone);

    List<JiajiaWorker> inviteWorkerList(String phone);

    JiajiaWorker selectJiajiaWorker(Long uid);
}
